package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;

import java.util.LinkedHashSet;
import java.util.List;

public interface UserService {

    public User findByUsername(String username) ;
    
    public List<Integer> findRoleIdsByUserId(Integer id);

    public  void edit(Integer[] roleIds, User user);

    public List<Role> findAll();

    public void add(Integer[] roleIds, User user);

    public  PageResult findPage(QueryPageBean queryPageBean);

    public User findById(Integer id);

    public List<Role> findRoleAll();

    public void deleteById(Integer id);
    LinkedHashSet<Menu> getMenu(String username);

}
